//
//  WebViewController.m
//  GoldBook
//
//  Created by wmz on 2021/8/15.
//  Copyright © 2021 wmz. All rights reserved.
//

#import "WebViewController.h"
#import "PostWebView.h"
@interface WebViewController ()
@property (nonatomic , strong) PostWebView *webView;
@end

@implementation WebViewController

- (void)hd_setupViews{
    [self.view addSubview:self.webView];
    self.webView.url = self.url;
}

- (void)updateViewConstraints{
    [self.webView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.mas_equalTo(0);
        make.top.mas_equalTo(0);
    }];
    [super updateViewConstraints];
}

- (PostWebView *)webView{
    if (!_webView) {
        _webView = PostWebView.new;
    }
    return _webView;
}

@end
